/**
 * Created by 白雨浓 on 2018/1/23 12:28.
 */
export const template = `package <%= packageName %>.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <%= packageName %>.mapper
*
* @author <%= author %>
* date: <%= date %>
* content: DAO
*/
@Mapper
@Repository
public interface <%= clsName %>Mapper {
    <% methods.forEach(method=>{ %>
    <%- method.type %> <%= method.name %>(<%for(let i = 0;i < method.params.length;i++){ const param=method.params[i]; %><% if(i != 0) { %>, <% } %><% if(method.params.length > 1){ %>@Param("<%= param.name %>") <% } %><%- param.type %> <%= param.name %><% } %>);
    <% }) %>
}`;